package com.oa.system.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author syb
 * date 2019/2/12
 */
@Data
@ApiModel(value = "审批人")
public class HandlerVO {

    @ApiModelProperty(value = "审批人类别（1-主管 2-指定用户）")
    private Integer handlerType;

    @ApiModelProperty(value = "主管（1-直接主管 2-二级主管）")
    private Integer governor;

    @ApiModelProperty(value = "审批人id")
    private String handlerId;

    @ApiModelProperty(value = "审批人value")
    private String handlerValue;

    public HandlerVO(Integer handlerType, Integer governor) {
        this.handlerType = handlerType;
        this.governor = governor;
    }

    public HandlerVO(String id, String name) {
        this.handlerId = id;
        this.handlerValue = name;
    }
}
